<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<style>
.form-item {
		margin: 20px 10px;
}
.form-item>label {
	letter-spacing: 3px;
	width: 120px;
	text-align: right;
	display: inline-block;
}
	
.form-item>label:after {
	content: ":";
}
	
.form-item input[type=text] {
	width: 150px;
}
	
.form-item.required>label:before {
	content: "*";
	color: red;
}
</style>
<form id="transferassForm">
	<input type="hidden" value="${user.userId}" name="userid" />
	<div style="width:350px;margin: 35px auto;">
		<div class="form-item required">
			<input type="hidden" value="${tranferassistEntity.tranferId}" name="tranferId" />
			<label for="">学生姓名</label>
			<input name="inputStuName" value="${tranferassistEntity.inputstuName.inputStuName !=null ? tranferassistEntity.inputstuName.inputStuName : inputStuEntity.inputStuName}" data-options="required:true" type="text" class="easyui-textbox" />
		</div>
		<div class="form-item">
			<label for="">是否移交</label>
			<input value="0" ${empty tranferassistEntity || tranferassistEntity.tranIsreceived=='0' ? 'checked': '' } data-options="required:true" type="radio" class="easyui-radio" name="tranIsreceived" />待移交
			<input value="1" ${tranferassistEntity.tranIsreceived=='1' ? 'checked': '' } data-options="required:true" type="radio" class="easyui-radio" name="tranIsreceived" />已移交
		</div>
		<div class="form-item required">
			<label for="">我要移交给</label>
			<select name="requestuserinfoName" class="easyui-combobox" style="width:100px;height:25px;border-radius: 5px;border:1px solid lightblue;">
				<option>请选择咨询师</option>
				<c:choose>
					<c:when test="${tranferassistEntity == null}">
						<c:forEach items="${consultant}" var="consultant">
							<option>${consultant.userName}</option>
						</c:forEach>
					</c:when>
					<c:otherwise>
						<c:forEach items="${consultant}" var="consultant">
							<option ${consultant.userName == tranferassistEntity.userName.userName ? 'selected' : ''}>${consultant.userName}</option>
						</c:forEach>
					</c:otherwise>
				</c:choose>
			</select>
		</div>
	</div>
</form>